﻿using Microsoft.Practices.Unity;
using RialternativeSample.Client.Helpers;
using RialternativeSample.ViewModels.Interfaces;
namespace RialternativeSample.ViewModels
{
    public class ViewModelLocator
    {
        public static ICustomersViewModel CustomersViewModel
        {
            get
            {
                return UnityHelper.UnityContainer.Resolve<ICustomersViewModel>();
            }
        }

        public static IProductsViewModel ProductsViewModel
        {
            get
            {
                return UnityHelper.UnityContainer.Resolve<IProductsViewModel>();
            }
        }

        public static IEmployeesViewModel EmployeesViewModel
        {
            get
            {
                return UnityHelper.UnityContainer.Resolve<IEmployeesViewModel>();
            }
        }

        public static IMainViewModel MainViewModel
        {
            get
            {
                return UnityHelper.UnityContainer.Resolve<IMainViewModel>();
            }
        }

        public static ILoginViewModel LoginViewModel
        {
            get
            {
                return UnityHelper.UnityContainer.Resolve<ILoginViewModel>();
            }
        }
    }
}
